<template>
  <div class="top-user-pay-info">
    <go-back class="go-back">
      <template #center>
        <slot name="title"></slot>
      </template>
    </go-back>
    <div class="line"></div>
    <div class="user-info">
      <div class="stu-id">
        <span class="stu-id-title">学号:</span>
        <span>{{ topUserPayInfo.stu_id }}</span>
      </div>
      <div>
        <span>代缴金额:</span>
        <span>￥{{ topUserPayInfo.amount }}</span>
      </div>
    </div>
  </div>
</template>

<script lang="js">
import {defineComponent, reactive, ref} from 'vue'
import GoBack from '@/components/go-back/go-back.vue'
import { useState } from '@/hooks'
export default defineComponent({
  props: {
    topUserPayInfo:{
      type:Object,
      default(){
        return {}
      }
    }
  },
  components: {
    GoBack
  },
  setup() {
    return {

    }

  }
})
</script>

<style scoped lang="less">
.top-user-pay-info {
  background-color: var(--van-theme-color);
  min-height: 18vh;
  display: flex;
  flex-direction: column;
  padding: 6vw;
  color: var(--van-white-color);
  .go-back {
    width: 100%;
    padding-bottom: 2vh;
  }
  .line {
    margin: 0 1vw;
    border-bottom: 1px solid var(--van-white-color);
  }
  .user-info {
    display: flex;
    flex-direction: column;
    padding: 0 1vw;
    div {
      display: flex;
      // justify-content: space-between;
      margin: 1.6vh 0;

      span:nth-child(2) {
        margin-left: 2vw;
      }
    }
    .stu-id {
      margin-top: 3vh;
      .stu-id-title {
        padding-left: 9vw;
      }
    }
  }
}
</style>
